package com.fastjpa.vo;
import com.efeichong.mapping.Mapping;
import com.efeichong.mapping.UseMode;
import lombok.Getter;
import lombok.Setter;
import java.lang.Long;
import java.lang.String;
import java.util.List;

/**
* @author admin
* @date 2022/07/17
* @description 班级
*/
@Setter
@Getter
public class ClazzVo {
    /**id**/
    private Long id;

    /**班级名称**/
    private String name;

    @Mapping(poProperty = "students", useMode = UseMode.TO_VO)
    private List<StudentVo> studentVos;

    @Mapping(poProperty = "students.name", useMode = UseMode.TO_VO)
    private List<String> studentNames;

    @Mapping(poProperty = "teachers.name", useMode = UseMode.TO_VO)
    private List<String> teacherNames;
}
